package com.hzit.client;


import com.hzit.auth.entity.User;
import com.hzit.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("hzit-user")
public interface UserClient {

	@GetMapping("/user/findByUsername/{username}")
	R<User> findByUsername(@PathVariable("username") String username);

	@GetMapping("/user/findPermissionListByUserId/{userId}")
	R<List<String>> findPermissionListByUserId(@PathVariable("userId") String userId);
}
